import request from '@/utils/http';

// 站点列表
export function locationList(data) {
	return request({
		url: '/anchor/platform/anchors/common/location/list',
		method: 'post',
		data
	});
}

// 站点列表(分总)
export function locationListFz(data) {
	return request({
		url: '/anchor/platform/anchors/common/location/self/list',
		method: 'post',
		data
	});
}

// 探店产品列表（超级权限）
export function tdProductList(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/list',
		method: 'get',
		params
	});
}

// 探店产品列表（分总）
export function tdProductListFz(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/list/self',
		method: 'get',
		params
	});
}

// 探店产品详情
export function tdProductDetail(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/list/details',
		method: 'get',
		params
	});
}

// 探店设置详情
export function tdProductTdSetDetail(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/list/tdSet/detail',
		method: 'get',
		params
	});
}

// 探店设置
export function tdProductTdSetAdd(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/list/tdSet/add',
		method: 'get',
		params
	});
}

// 产品顺序
export function setSort(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/list/sort',
		method: 'get',
		params
	});
}
// 获取素材要求配置详情
export function getMaterialConfigDetail(params) {
	return request({
		url: '/anchor/platform/manager/tdProduct/tdresource/getById',
		method: 'get',
		params
	});
}
//更新素材要求配置信息
export function updateMaterialConfig(data) {
	return request({
		url: '/anchor/platform/manager/tdProduct/tdresource/updateConfig',
		method: 'post',
		data
	});
}
